project(main)



add_compile_options(-std=c++11)
add_definitions(-std=c++11 -Wno-attributes -Wno-deprecated-declarations -DANDROID_STL=c++_shared)
set(CMAKE_CXX_STANDARD 11)

file(GLOB_RECURSE Files *.cpp *.h *c)

add_executable(${PROJECT_NAME} ${Files})

add_definitions(-DDEBUG)

#包含头文件目录
# include_directories(${ROCKIT_FILE_HEADERS})
# include_directories(${PROJECT_SOURCE_DIR}/../common/rockit/include)
include_directories(${PROJECT_SOURCE_DIR}/../common)


#需要包含的公共库
target_link_libraries(${PROJECT_NAME} pthread)
target_link_libraries(${PROJECT_NAME} dl)
# target_link_libraries(${PROJECT_NAME} curl)

# set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../libs)
target_link_libraries(${PROJECT_NAME} /opt/temp/user-shm/libs/libipc-shm.a)


if(ARM_PLATFORM)
    message(DEBUG "ARM_PLATFORM")
    # target_link_libraries(${PROJECT_NAME} rockit)
    # target_link_libraries(${PROJECT_NAME} graphic_lsf)
    # target_link_libraries(${PROJECT_NAME} panoStitchApp)
    # target_link_libraries(${PROJECT_NAME} rkgfx_avs)
    # target_link_libraries(${PROJECT_NAME} RkSwCac)
    # target_link_libraries(${PROJECT_NAME} avformat)
    # target_link_libraries(${PROJECT_NAME} avutil)
    # target_link_libraries(${PROJECT_NAME} avcodec)
elseif(X86_PLATFORM)
    message(DEBUG "X86_PLATFORM")
    # target_link_libraries(${PROJECT_NAME} /usr/local/lib/libavformat.so)
    # target_link_libraries(${PROJECT_NAME} /usr/local/lib/libavutil.so)
    # target_link_libraries(${PROJECT_NAME} /usr/local/lib/libavcodec.so)
endif()


